package com.aishua.fire.common.eenum;

/**
 * 供应商黑名单表列表
 * @author Administrator
 *
 */
public enum SupplierBlackTableEnum {

	PERM("Perm","子权限"),
	PERM_PTEAM("PermPermteam","权限组_子权限关联"),
	PTEAM("Permteam","权限组"),
	ATEAM_PTEAM("AccountteamPermteam","账户组_权限组关联"),
	ATEAM("Accountteam","账户组"),
	ACCOUNT_ATEAM("AccountAccountteam","账户_账户组关联"),
	ACCOUNT("Account","账户");
	
	/** 接口名 **/
	private String tableName;
	/** 描述 **/
	private String tableDesc;
	
	SupplierBlackTableEnum(String tableName,String tableDesc) {
		this.tableName = tableName;
		this.tableDesc = tableDesc;
	}

	public String getTableName() {
		return tableName;
	}

	public void setTableName(String tableName) {
		this.tableName = tableName;
	}

	public String getDesc() {
		return tableDesc;
	}

	public void setDesc(String desc) {
		this.tableDesc = desc;
	}

	public static boolean isNotInHere(String simpleName) {
		for(SupplierBlackTableEnum e:values()) {
			if(e.getTableName().equals(simpleName)) {
				return false;
			}
		}
		return true;
	}
	
}
